<div class='fui-page  fui-page-current article-list-page' ng-if="pagedata.op=='list'">
	<div class='fui-content' style="margin-bottom:2.5rem">
			<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
					<div class="carousel-inner" role="listbox" style="height:auto">
						<div ng-class="{'item':1, 'active':$index==0}" ng-repeat="nav in pagedata.pluginset.hdps">
							<a href="{{nav.url}}">
								<img ng-src="{{tomedia(nav.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
							</a>
						</div>
					</div>
					<style>
							.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
							.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
					</style>
					<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
						<div class="fui-swipe-bullet" ng-repeat="nav in pagedata.pluginset.hdps" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
					</div>
			</div>
			<div class="fui-article-list template-2">
				<!--<div class="fui-tab-scroll">
						<div class="item"><a ng-class="{'jylabel jylabel-f60-0':1,'active':pagedata.group_id == 0}" href="javascript:;" ng-click="access_json('/article.list/','group_id=0')">全部分类</a></div>
						<div ng-repeat="item in pagedata.groups" class="item"><a ng-class="{'jylabel jylabel-f60-0':1,'active':pagedata.group_id == item.id}" href="javascript:;" ng-click="access_json('/article.list/','group_id='+item.id)">{{item.title}}</a></div>
				</div>-->
				<div class="fui-list-group">
					<div class="list-number" ng-repeat="item in pagedata.list">
							<a class="fui-list " href="{{item.url}}">
								<div class="fui-list-media">
									<img class="round" src="{{tomedia(item.picurl) || '../core/resource/images/nopic.jpg'}}">
								</div>
								<div class="fui-list-inner">
									<div class="title">{{item.title}}</div>
									<div class="subtitle">{{item.desc}}</div>
								</div>
								<div class="fui-list-angle">
									<div class="angle"></div>
								</div>
							</a>
					</div>
				</div>  
			</div>
	    <div class="fui-message fui-message-popup in content-empty" ng-show="!pagedata.list" style="margin-top: 0; position: relative; height: auto; background: none;">
				<div class="icon ">
					<i class="icon icon-information"></i>
				</div>
				<div class="content">未找到文章~</div>
		</div>
		
	</div>
</div>

<div class='fui-page  fui-page-current article-index-page' ng-if="pagedata.op=='detail'">
	<div class='fui-content' style="margin-bottom:2.5rem">
		<div class="fui-article-page">
			<div ng-if="pagedata.onlycontent!=1" class="fui-article-title">{{pagedata.item.title}}</div>
			<div ng-if="pagedata.onlycontent!=1"class="fui-article-subtitle"><a onclick="$('#followewm').modal();">{{pagedata.item.author || pagedata.account.title}}</a> <span class="r-f">发布时间: {{pagedata.item.date || pagedata.item.createtime}}</span></div>
			<!-- 关注提示 -->
				<div class="fui-list-group external" ng-if="pagedata.item.account==1" onclick="$('#followewm').modal();">
					<div class="fui-list">
						<div class="fui-list-media">
							<img class="round" src="{{tomedia(pagedata.account.logo) || '../core/resource/images/nopic.jpg'}}">
						</div>
						<div class="fui-list-inner">
							<div class="title">{{pagedata.account.title}}</div>
							<div class="subtitle">{{pagedata.account.desc}}</div>
						</div>
						<div class="fui-list-angle" style="width: 3rem; margin-right: 0;display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; flex-shrink: 0; flex-wrap: nowrap;">
							<div class="btn btn-sm btn-success" onclick="$('#followewm').modal();"><i class="fa fa-plus"></i> 关注</div>
						</div>
					</div>
				</div>
			<style>
			.noread{
				height:8rem;
				overflow-y:hidden
			}
			.noread-btn {position: relative;padding-top:2rem;margin-top:-1.3rem}
			.noread-btn .exp-mask {
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 2rem;
				background-image: linear-gradient(-180deg,rgba(255,255,255,0) 13%,#fff 63%);
			}
			</style>
			<div ng-class="{'fui-article-content':1,'noread':pagedata.item.noread}" ng-bind-html="trust(pagedata.item.content)"></div>
			<div class="noread-btn" ng-if="pagedata.item.noread && pagedata.item.fee>0">
				<div class="exp-mask"></div>
				<div class="weui_cells" style="margin-top:0;">
					<a ng-if="!pagedata.order_id" href="javascript:;" ng-click="pagedata.pay_submit({'article_id':pagedata.item.id},'core/article.list/pay/','core/article.list/detail/id='+pagedata.item.id)" class="weui_btn weui_btn_plain_primary">付费阅读(￥{{pagedata.item.fee}})</a>
					<a ng-if="pagedata.order_id" href="javascript:;" ng-click="pagedata.pay(pagedata.order_id)" class="weui_btn weui_btn_plain_primary">付费阅读(￥{{pagedata.item.fee}})</a>
				</div>
			</div>
			<div ng-if="(pagedata.item.article_rule_credit>0 || pagedata.item.article_rule_money>0) && pagedata.item.article_rule_daynum>0 " class="tips tips-yellow">
				<i class="fa fa-bullhorn"></i> [<red>分享奖励</red>]：
				<span ng-if="pagedata.item.article_rule_credit>0"><red>{{pagedata.item.article_rule_credit}}</red>积分/次</span>
				<span ng-if="pagedata.item.article_rule_money>0">￥<red>{{pagedata.item.article_rule_money}}</red>余额/次</span>
				<span ng-if="pagedata.item.article_rule_daynum>0">每天最多奖励<red>{{pagedata.item.article_rule_daynum}}</red>次</span>
				<span ng-if="pagedata.item.article_rule_allnum>0">每人最多奖励<red>{{pagedata.item.article_rule_allnum}}</red>次</span>
			</div>
			<div ng-if="pagedata.onlycontent!=1" class="fui-article-subtitle">
				<div class="nav"><i class="fa fa-user"></i> {{pagedata.item.readnum}} </div>
				<div class="nav padding">
					<i class="fa fa-heart" style="color:red" ng-show="pagedata.like.like==1" ng-click="pagedata.item.likenum=pagedata.item.likenum-1;pagedata.like.like=0;post({'id':pagedata.like.id,'article_id':pagedata.item.id,'like':pagedata.like.like},'core/article.list/like/','','ignore')"></i>
					<i class="fa fa-heart" style="color:gree" ng-show="pagedata.like.like!=1" ng-click="pagedata.item.likenum=pagedata.item.likenum+1;pagedata.like.like=1;post({'id':pagedata.like.id,'article_id':pagedata.item.id,'like':pagedata.like.like},'core/article.list/like/','','ignore')"></i>
					<span>{{pagedata.item.likenum}}</span>
				</div>
			</div>
			
		</div>

		<div style="margin-top:0.5rem" ng-show="pagedata.onlycontent!=1 && pagedata.item.yingxiao && pagedata.item.advs && pagedata.item.advs.length>0">
				<div class="fui-line title" ng-show="pagedata.item.adtitle">
					<div class="text" style="background-color:#f4f4f4">{{pagedata.item.adtitle}}</div>
				</div>

				<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
					<div class="carousel-inner" role="listbox">
						<div ng-repeat="ad in pagedata.item.advs" ng-class="{'item':1, 'active':$index==0}" >
							<a ng-click="access_json(ad.url)">
								<img ng-src="{{tomedia(ad.img) || '../core/resource/images/nopic.jpg'}}" style="display: block; width: 100%; height: 100%;">
							</a>
						</div>
					</div>
					<style>
							.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
							.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
					</style>
					<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 0.2rem; bottom: 0.2rem; ">
						<div class="fui-swipe-bullet" ng-repeat="ad in pagedata.item.advs" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
					</div>
				</div>
				<div class="fui-line subtitle link" ng-init="loubo()" ng-show="pagedata.item.admore">
					<a class="text external" href="{{pagedata.item.adurl || 'javascript:;'}}">{{pagedata.item.admore}}</a>
				</div>
		</div>
	</div>
</div>
<div id="followewm"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="top:12%">
				<div class="wap-qrcode-container">
					<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
					<p class="example1">{{pagedata.account.title}}</p>
					<div class="wap-qrcode-image">
						<img ng-src="{{tomedia(pagedata.account.ewm) || '../core/resource/images/nopic.jpg'}}"/>
					</div>
					<p class="example1">长按二维码关注</p>
				</div>
			</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>
<script>
if(scope.pagedata.op=='list'){
	scope.tool.get_list('core/article.list/list/',true);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('core/article.list/list/');
	}
}
</script>